package android.slc.extras.system.repository.remote;

import android.slc.appbase.api.slc.callback.po.SlcEntity;
import android.slc.extras.system.entify.AppVersions;
import android.slc.or.SlcNu;
import android.slc.rx.SlcRxJavaUtils;

import io.reactivex.rxjava3.core.Observable;

/**
 * @author slc
 * @date 2020-09-23 15:16
 */
public class VersionServiceRepository {

    public static Observable<SlcEntity<AppVersions>> getVersionByLast(){
        return SlcNu.getInstance().create(VersionService.class)
                .getVersionByLast()
                .compose(SlcRxJavaUtils.applyOoAndroidSchedulers());
    }
}
